import java.sql.Connection;

public class Test {
    public static void main(String[] args) {
        Connection conn = DBUtil.getConnection();
        DBUtil dbUtil = new DBUtil();
        String sql = "select * from tb_student";
        dbUtil.select(conn, sql);
//  测试新增（插入）信息
        Student student = new Student(0, "周六", 22, "男","Z240107","江软");
        dbUtil.insert(student, conn);
        //测试修改信息功能
//        Student student = new Student(3,"周六",22,"男","B220109","江西软件职业技术大学");
//        dbUtil.update(student,conn);
        //测试删除信息功能
//        dbUtil.delete(1,conn);

    }
}
